include ../Makehead

LdFlags += -r
CFlags += -finline-functions -I../include
CPP += -I../include

.c.s:
	$(CC) $(CFlags) -S -o $*.s $<
.s.o:
	$(AS) -o $*.o $<
.c.o:
	$(CC) $(CFlags) -c -o $*.o $<

OBJS = buffer.o inode.o super.o  namei.o exec.o read_write.o  \
 	file_table.o block_dev.o pipe.o  char_dev.o  \
	fcntl.o ioctl.o select.o stat.o open.o  

build: fs.o 

fs.o: $(OBJS)
	$(LD) $(LdFlags) -o $@ $(OBJS)
	sync

clean:
	rm -rf *.o *.s 